<?php

/**
 * Subclass for performing query and update operations on the 'ringtone_banner' table.
 *
 * 
 *
 * @package lib.model
 */ 
class RingtoneBannerPeer extends BaseRingtoneBannerPeer
{
    public static function checkIsExistBanner($ringtone_id) {
        $con = new MysqlDAL('propel');
        $sql = "select ringtone_id
            FROM ringtone_banner
            WHERE ringtone_id = ".intval($ringtone_id)."
        ";
        $count = count($con->doSelect($sql));
        if ($count > 0)
            return TRUE;
        else
            return FALSE;
    }
}
